
//
//  BookPreviewDirectoryCell.m
//  TeacherPro
//
//  Created by DCQ on 2017/9/6.
//  Copyright © 2017年 ZNXZ. All rights reserved.
//

#import "BookPreviewDirectoryCell.h"
#import "PublicDocuments.h"
#import "BookPreviewModel.h"
@interface BookPreviewDirectoryCell()
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *leftConstraint;
@property(nonatomic, weak)IBOutlet UILabel * directoryTitle;
@end
@implementation BookPreviewDirectoryCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self setupSubview];
}

- (void)setupSubview{

    self.directoryTitle.textColor = UIColorFromRGB(0x6b6b6b);
    self.directoryTitle.font = fontSize_13;
}

- (void)setupDirectoryInfo:(BookUnitModel *)model{

    self.directoryTitle.text = model.unitName;
    self.directoryTitle.font = iPhone6Plus? [UIFont boldSystemFontOfSize:13*ip6size]:[UIFont boldSystemFontOfSize:FITSCALE(13)];
    self.leftConstraint.constant = 20;
}

- (void)setupChildrenDirectoryInfo:(BookUnitModel *)model{
    
    self.directoryTitle.text = model.unitName;
    self.leftConstraint.constant = 34;
}
@end
